<?php
namespace app\admin\model;
use think\facade\Db;
use app\admin\common;
class AliYunKey {
	private $table_obj;
	public function getSetting($where,$field='*'){
		extract(common::get('aliyun_oss_setting',[$where,$field]));
		if(empty($data)){
			$data=Db::name("aliyun_oss_setting")->where($where)->field($field)->find();
			common::set($data,600);
		}
		return $data;
	}
	
}
?>